var COMIC_PREFIX="http://localhost/solor/comic/js/";

// 为了使用include_files功能 .. 和基本yui库支持
function include_files(fn){var hd=document.getElementsByTagName("head")[0],arr_f=[],re,ty,f,url;if(typeof fn=="object"){arr_f=fn;}else{arr_f[0]=fn;}var append_new=function(src,type){switch(type){case"js":document.write("<sc"+"ript src=\""+src+"\" type=\"text/javascript\"></sc"+"ript>");break;case"css":f=document.createElement("link");f.setAttribute("rel","stylesheet");f.setAttribute("type","text/css");f.href=src;hd.appendChild(f);break;}};re=hd.innerHTML.toLowerCase();for(var i=0,j=arr_f.length;i<j;i++){url=arr_f[i].toLowerCase();if((re.indexOf(url+" ")+re.indexOf(url+"\"")+re.indexOf(url+">")+re.indexOf(url+"\/>"))<=0){ty=arr_f[i].substring(arr_f[i].lastIndexOf(".")+1);append_new(arr_f[i],ty);}}}

// 基本yui服务
include_files("http://cn.yimg.com/i/js/1_1_0/ycnlib.js");

// 包含所有yui库相关函数
include_files("http://cn.yimg.com/i/yui/2_2_2/connection.js");
include_files("http://cn.yimg.com/i/yui/2_2_2/animation.js");
include_files("http://cn.yimg.com/i/yui/2_2_2/dragdrop.js");
include_files("http://cn.yimg.com/i/yui/2_2_2/container.js");
//include_files("http://cn.yimg.com/i/yui/2_2_2/1/container.css");
//include_files("http://developer.yahoo.com/yui//build/container/assets/skins/sam/container.css?_yuiversion=2.3.1");
include_files("http://localhost/solor/comic/css/container.css");
include_files('http://cn.yimg.com/i/yui/2_2_2/element.js');
include_files('http://cn.yimg.com/i/yui/2_2_2/tabview.js');
include_files('http://cn.yimg.com/i/yui/2_2_2/slider.js');
include_files('http://yui.yahooapis.com/2.3.1/build/imageloader/imageloader-experimental-min.js');

// YAHOO.CN.map.json 库，提供json解析支持
include_files(COMIC_PREFIX + "ext/json.js");
// 数据相关
include_files(COMIC_PREFIX + "comic/data.js");
// 全局类和方法
include_files(COMIC_PREFIX + "comic/common.js");
// 图片相关
include_files(COMIC_PREFIX + "comic/picture.js");

